
#include "syscall.h"

int main() {

	int mylock0;
	int mylock1;
	int mylock2;
	int mylock3;
	int mylock4;
	int mylock5;
	int condition0;
	int condition1;
	int condition2;
	int condition3;
	int condition4;
	int condition5;
	int mv,mv2,mv3;
	int mvvalue;
	
	mv = CreateMV(1,"First",5);
	FPrint("mv 1 is %d\n",12,1,mv);
	mv = CreateMV(1,"First",5);
	FPrint("mv 1 is %d\n",12,1,mv);	
	
	mv2 = CreateMV(1,"Secon",5);
	FPrint("mv 2 is %d\n",12,1,mv2);
	mv2 = CreateMV(1,"Secon",5);
	FPrint("mv 2 is %d\n",12,1,mv2);
	
	mv3 = CreateMV(1,"Third",5);
	FPrint("mv 3 is %d\n",12,1,mv3);
	mv3 = CreateMV(1,"Third",5);
	FPrint("mv 3 is %d\n",12,1,mv3);
	
	/*condition0 = CreateCondition("First",5);
	FPrint("Condition 0 is %d\n",19,1,condition0);
	condition0 = CreateCondition("First",5);
	FPrint("Condition 0 is %d\n",19,1,condition0);
	
	condition1 = CreateCondition("Second",6);
	FPrint("Condition 1 is %d\n",19,1,condition1);
	condition1 = CreateCondition("Second",6);
	FPrint("Condition 1 is %d\n",19,1,condition1);

	condition2 = CreateCondition("Thirdd",6);
	FPrint("Condition 2 is %d\n",19,1,condition2);
	condition2 = CreateCondition("Thirdd",6);
	FPrint("Condition 2 is %d\n",19,1,condition2);
	
	mylock0 = CreateLock("SharedLock",10);
	
	FPrint("Shared lock number is %d\n",26,1,mylock0);

		mylock0 = CreateLock("SharedLock",10);
	
	FPrint("Shared lock number is %d\n",26,1,mylock0);
	mylock0 = CreateLock("SharedLock",10);
	FPrint("Shared lock number is %d\n",26,1,mylock0);
	
	mylock1 = CreateLock("SharedLoc2",10);
	
	FPrint("Shared lock2number is %d\n",26,1,mylock1);

		mylock1 = CreateLock("SharedLoc2",10);
	
	FPrint("Shared lock2number is %d\n",26,1,mylock1);
	mylock1 = CreateLock("SharedLoc2",10);
	FPrint("Shared lock2number is %d\n",26,1,mylock1);
	mylock2 = CreateLock("SharedLoc3",10);
	
	FPrint("Shared lock3number is %d\n",26,1,mylock2);
	mylock2 = CreateLock("SharedLoc3",10);
	FPrint("Shared lock3number is %d\n",26,1,mylock2);
	
	mylock3 = CreateLock("SharedLoc4",10);
	
	FPrint("Shared lock4number is %d\n",26,1,mylock3);
	mylock3 = CreateLock("SharedLoc4",10);
	FPrint("Shared lock4number is %d\n",26,1,mylock3);
	
	/*FPrint("The LOCK # is %d",16,1,mylock0);
	DestroyLock(mylock0);
	AcquireLock(mylock0);
	condition0 = CreateCondition();
	SignalCondition(condition0,mylock0);
	BroadcastCondition(condition0,mylock0);
	WaitCondition(condition0,mylock0);
	mv = CreateMV(2);
	FPrint("The mv # is %d\n",16,1,mv);
	mvvalue = GetMV(mv,0);
	FPrint("The mvvalue 0 is %d\n",21,1,mvvalue);
	mvvalue = GetMV(mv,1);
	FPrint("The mvvalue 1 is %d\n",21,1,mvvalue);
	SetMV(mv,0,5);
	mvvalue = GetMV(mv,0);
	FPrint("The mvvalue 0 is %d\n",21,1,mvvalue);
	DestroyMV(mv);*/
	
}